import Cookies from 'js-cookie'

const TokenKey = 'hr72token'
const TimeKey = 'hr72Timestamp'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
// 获取时间戳
export function getTimestamp() {
  return Cookies.get(TimeKey)
}
// 设置时间戳
export function setTimestamp() {
  return Cookies.set(TimeKey, Date.now())
}
// 删除时间戳
export function removeTimestamp() {
  return Cookies.remove(TimeKey)
}
